package com.cw.auth.application.convert;

import com.cw.auth.application.dto.AuthRoleDTO;
import com.cw.auth.application.dto.AuthUserDTO;
import com.cw.auth.domain.entity.AuthRoleBO;
import com.cw.auth.domain.entity.AuthUserBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthRoleDTOConverter {
        AuthRoleDTOConverter INSTANCE = Mappers.getMapper(AuthRoleDTOConverter.class);

        List<AuthRoleDTO> convertBoToDTOList(List<AuthRoleBO> authRoleBOList);

        // 通过AuthRoleDTO转化为AuthRoleBO
        AuthRoleBO convertDtoToBO(AuthRoleDTO authRoleDTO);

    AuthRoleDTO convertBoToDTO(AuthRoleBO authRoleBO);
}
